package movies.repository;

import java.util.List;
import movies.domain.Article;

/**
 *
 * @author Hanna_Aliakseichykava
 */
public interface IArticleRepository {

    public Article getArticleById(final int id);

    public Article saveArticle(final Article article);

     public void deleteArticle(final Article article);

    public void updateArticle(final Article article);

    public List<Article> getArticlesByArticleCategoryId
            (final int articleCategoryId);

    public List<Article> getArticlesByCategoryAndUserId
            (final int categoryId, final int userId);

    public List<Article> getArticlesByNameEvent
            (final String nameEvent);

    public List<Article> getArticlesByEventCategoryId
            (final int eventCategoryId);

    public List<Article> getArticlesByCountryEventId
            (final int countryEventId);

}
